package com.juyu.miliao.api.constant;

import lombok.Getter;

/**
 * @Auther: 卜加超
 * @Date: 2019/7/16 17:37
 * @Description:
 */
@Getter
public enum DepositType {
    /**
     *
     */
    PAY_VIP_ADD_BEANS(1, "充值寻币"),
    PAY_SEND_GIFT(2, "赠送礼物"),
    CALL_VIDEO(3, "视频通话"),
    HOST_USER_PRESENTATION(4, "提现"),
    HOST_USER_CANCEL_PRESENTATION(5, "提现拒绝返还"),
    BUY_PRIVATE_PHOTO(6, "私照消费"),
    COOL_SUMMER_GET_COIN(7, "清凉一夏返利寻币"),
    SYSTEM_REWARD_GIVE_COIN(8, "系统奖励"),
    SYSTEM_PUNISHMENT_GIVE_COIN(9, "系统惩罚"),
    BUY_HONEY_PHOTO_GET_COIN(10, "蜜照消费"),
    LUCK_DRAW_PRIZE_GET_COIN(11, "抽奖寻币奖励"),
    INVITE_FRIENDS_GIVE_DIAMONDS(12, "邀请好友钻石收益"),
    INVITE_HOST_GIVE_DIAMONDS(13, "邀请主播钻石收益"),
    GIFT_RANKING_REWORD_DIAMONDS(14, "礼物争夺战奖励"),
    NEW_USER_BINDING_PHONE_GIFT_DEPOSIT(15, "新用户绑定手机号赠送金币"),
    UNION_HOST_CHECK(16, "工会主播提现"),
    UNION_HOST_FAIL(17, "工会主播提现失败返还");

    private int code;
    private String desc;

    DepositType(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static String getDescByType(int type) {
        String message;
        switch (type) {
            case 1:
                message = "充值寻币";
                break;
            case 2:
                message = "赠送礼物";
                break;
            case 3:
                message = "视频通话";
                break;
            case 4:
                message = "主播提现审核";
                break;
            case 5:
                message = "主播提现拒绝返现";
                break;
            case 6:
                message = "私照消费";
                break;
            case 7:
                message = "清凉一夏返利寻币";
                break;
            case 8:
                message = "系统奖励";
                break;
            case 9:
                message = "系统惩罚";
                break;
            case 10:
                message = "蜜照消费";
                break;
            case 11:
                message = "抽奖寻币奖励";
                break;
            case 12:
                message = "邀请好友钻石收益";
                break;
            case 13:
                message = "邀请主播钻石收益";
                break;
            case 14:
                message = "礼物争夺战奖励";
                break;
            case 15:
                message = "新用户注册赠送";
                break;
            case 16:
                message = UNION_HOST_CHECK.desc;
                break;
            case 17:
                message = UNION_HOST_FAIL.desc;
                break;
            default:
                message = "其他消费";
                break;
        }
        return message;
    }
}
